package ComputerWork;

public abstract class CPU{
	private String name;
	private String coreNum;
	private double price;
	
	public CPU(String name, String coreNum, double price) {
		this.name = name;
		this.coreNum = coreNum;
		this.price = price;
	}
	
	public String getName() {
		return name;
	}
	
	public String getCoreNum() {
		return coreNum;
	}
	
	public double getPrice() {
		return price;
	}
	
	public abstract void work();

	public void digital() {
		System.out.println(name + ' ' + coreNum + ' ' + price);
	}
}
